-- GENERATED SPELL FOR [Cavern Crawler] --


function spell0_22044(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22044', 30000, 1)
end

function Sorts_22044(pUnit, Event)
local choix_sorts_22044 = math.random(0, 0)
if choix_sorts_22044 == 0 then
pUnit:RegisterEvent('spell0_22044', 1, 1)
end
end

function mob22044_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22044', math.random(1500, 3000), 1)
end

function mob22044_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22044_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22044_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22044, 1, 'mob22044_Action')
RegisterUnitEvent(22044, 2, 'mob22044_Leave')
RegisterUnitEvent(22044, 3, 'mob22044_Kill')
RegisterUnitEvent(22044, 4, 'mob22044_Die')
